import Vue from 'vue'
import VueRouter from 'vue-router'
import SudCust from '@/views/sud-cust/index.vue'
import Sud from '@/views/sud'
import Cust from '@/views/cust'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Sud',
    component: Sud
  },
  {
    path: '/sudcust',
    name: 'sudCust',
    component: SudCust
  },
  {
    path: '/sud',
    name: 'Sud',
    component: Sud
  },
  {
    path: '/cust',
    name: 'Cust',
    component: Cust
  }
]
//创建路由
const router = new VueRouter({
  mode: 'hash',
  routes
})
//导出
export default router
